package com.zyg.cod.test;

import com.zyg.cod.annotation.FieldXmlAnnotation;
import com.zyg.cod.annotation.TableXmlAnnotation;

/**
 * @Dsc: 班级信息
 * @Author: zyg
 * @Date: 2021/1/26
 */
@TableXmlAnnotation(TableName="clazzInfo",RelationType = 1,ElementFromName="ClazzInfo")
public class ClazzInfo {

	@FieldXmlAnnotation(FieldName="Id",ElementName="ID",isNeed = false)
	private int id;
	@FieldXmlAnnotation(FieldName="Id",ElementName="Uid",isNeed = true)
	private int uid;
	@FieldXmlAnnotation(FieldName="Id",ElementName="Name",isNeed = true)
	private String name;
	@FieldXmlAnnotation(FieldName="Id",ElementName="Num",isNeed = true)
	private int num;

	public ClazzInfo() {
	}

	public ClazzInfo(int id, int uid, String name, int num) {
		this.id = id;
		this.uid = uid;
		this.name = name;
		this.num = num;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
}
